package com.recharge.base;

/**
 * Created by qi.cao on 2016/4/19.
 */
public enum ResponseInfoEnum {

    SUCCESS(0,"操作成功"),
    FAIL(1,"操作失败"),
    TARGET_DATA_NOT_EXISTS(100000,"请求数据不存在");


    private ResponseInfoEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    private int code;

    private String msg;

    public void appendMsg (String appendMsg){
        this.msg = this.msg + ",reason:" + appendMsg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
